﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "FoodOrderService" in code, svc and config file together.
public class FoodOrderService : IFoodOrderService
{
	

    public FoodOrderVO getFoodOrderByID(int id)
    {
        var tesstobj =new MBSBLC.BLC().getFoodOrderByID(id);
        FoodOrderVO test2 =new FoodOrderVO();
         
       test2._BookingID= tesstobj.BookingID;
       test2._ItemsOrdered =tesstobj.ItemsOrdered;
       test2._OrderID= tesstobj.OrderID;
       test2._Price= tesstobj.Price;
       return test2;
    }

    public bool addFoodOrder(int orderId, int bookingId, string itemsOrdered, decimal price)
    {
        return new MBSBLC.BLC().addFoodOrder(orderId,bookingId,itemsOrdered,price);
    }

    public bool deleteFoodOrder(int id)
    {
        return new MBSBLC.BLC().deleteFoodOrder(id);
    }
}
